﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Newtonsoft.Json;

namespace Mr.LinqToWeibo
{
	public class Weibo
	{
		[JsonProperty("id")]
		public long Id { get; set; }
		
		[JsonProperty("created_at")]
		public string CreatedAt { get; set; }
		
		[JsonProperty("text")]
		public string Text { get; set; }
		
		[JsonProperty("source")]
		public string Source { get; set; }
		
		[JsonProperty("favorited")]
		public bool Favorited { get; set; }
		
		[JsonProperty("truncated")]
		public bool Truncated { get; set; }
		
		[JsonProperty("in_reply_to_status_id")]
		public string InReplyToStatusId { get; set; }
		
		[JsonProperty("in_reply_to_user_id")]
		public string InReplyToUserId { get; set; }
		
		[JsonProperty("in_reply_to_screen_name")]
		public string InReplyToScreenName { get; set; }
		
		[JsonProperty("thumbnail_pic")]
		public string ThumbnailPic { get; set; }
		
		[JsonProperty("bmiddle_pic")]
		public string BmiddlePic { get; set; }
		
		[JsonProperty("original_pic")]
		public string OriginalPic { get; set; }
		
		[JsonProperty("retweeted_status")]
		public Weibo RetweetedStatus { get; set; }
		
		[JsonProperty("user")]
		public User User { get; set; }
		
		// get is no meaning except in query expression
		public Trend Trend { 
			get {
				throw new NotSupportedException ();	
			}
		}
		
		public Feature Feature { 
			get {
				throw new NotSupportedException ();		
			}
		}

		public bool BaseApp { 
			get {
				throw new NotSupportedException ();			
			}
		}
	}
}
